package com.itheima.test1110work;

public class Washer extends Elect  {
    private String Motor; // 电机类型
    private double capacity; // 洗涤容量
    //  有参变量
    public Washer(String name, String size, String color, double price, String motor, double capacity) {
        super(name, size, color, price);
        Motor = motor;
        this.capacity = capacity;
    }
    //无参构造
    public Washer(){}

    public String getMotor() {
        return Motor;
    }

    public void setMotor(String motor) {
        Motor = motor;
    }

    public double getCapacity() {
        return capacity;
    }

    public void setCapacity(double capacity) {
        this.capacity = capacity;
    }
}
